package com.bree.erp.service.util;

import java.util.Scanner;

public class JavaFile {
	private Scanner scanner = new Scanner(System.in);

	public void systemIO() throws java.io.IOException {
		System.out.println("Enter the character");
		String line = scanner.nextLine();
		int i = line.charAt(0);
		System.out.println("the character Enter by the user : " + (char) i);
		System.out.println("the assci vlue " + i);
	}

	public void cntApp() throws java.io.IOException {
		
		String line = "y";
		while ("y".equals(line)) {
			systemIO();
			System.out.println("press 'y'  if you want continue");
			line = scanner.nextLine();
			System.out.println("The Entery value   " + line);
		}
		
		scanner.close();

	}

	public static void main(String args[]) {
		try {
			new JavaFile().cntApp();
		} catch (java.io.IOException ioExe) {
			ioExe.printStackTrace();
		}
	}
}